Retrieving the XML structure of XML content allows for greater control over developing XSLs. The following is an example of how to retrieve the XML structure:
1. Open a new Web form.
2. Drag and drop a ContentList server control onto it.
3. Add at least one content ID to the ContentID property.
4. Drag and drop a Textbox on the Web form.
5. Set the TextMode property to MultiLine.
Note: Ektron recommends setting the text box width to at least 400 px.
6. On the code behind page, add the following line.
Textbox1.Text = ContentList1.XmlDoc.InnerXml
7. Build the project.
8. View the Web form in a browser.
The XML structure of the ContentList appears in the textbox.
For an additional example, see the ContentList XML page on the CMS400Developer samples page. It is located at:
In a browser:
http://<site root>/CMS400Developer/Developer/ContentList/ContentListXML.aspx
In the source code:
<site root>/CMS400Developer/Developer/ContentList/ContentListXML.aspx and ContentListXML.aspx.vb